<ul class="page-sidebar-menu">
    <li>
        <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
        <div class="sidebar-toggler hidden-phone"></div>
        <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
    </li>
    <li>
        <!-- BEGIN RESPONSIVE QUICK SEARCH FORM -->
        <form class="sidebar-search" action="extra_search.html" method="POST">
            <div class="form-container">
                <div class="input-box">
                    <a href="javascript:;" class="remove"></a>
                    <input type="text" placeholder="<?=ulang('buscar')?>..."/>
                    <input type="button" class="submit" value=" "/>
                </div>
            </div>
        </form>
        <!-- END RESPONSIVE QUICK SEARCH FORM -->
    </li>
    <?php foreach ($this->session->userdata('menu') as $key => $menu) { ?>
    
        <li class="<?=$key == 0 ? 'start' : ''?> <?=$key == 0 ? 'panel/'.$menu['men_enlace'] == $this->uri->uri_string()."/" ? 'active' : '' : ''?>">
            <a href="<?=$menu['men_enlace'] != null ? site_url('panel/'.$menu['men_enlace']) : 'javascript:;'?>">
                <?=$menu['men_icono'] != null ? '<i class="'.$menu['men_icono'].'"></i>' : ''?>
                <span class="title"><?=ulang($menu['men_slug'])?></span>
                <span class="arrow"></span>
            </a>
            
            <?php if (count($menu['d_hijos']) > 0) { ?>
                <ul class="sub-menu">
                    <?php foreach ($menu['d_hijos'] as $submenu) { ?>
                        <li>
                            <a href="<?=$submenu['men_enlace'] != null ? site_url('panel/'.$submenu['men_enlace']) : 'javascript:;'?>">
                                <?=ulang($submenu['men_slug'])?>
                            </a>
                        </li>
                    <?php } ?>
                </ul>
            <?php } ?>
        </li>
    <?php } ?>
    <li class="">
        <a href="javascript:;">
            <i class="icon-table"></i> 
            <span class="title"><?=ulang('foro')?></span>
            <span class="arrow "></span>
        </a>
        <ul class="sub-menu">
            <li >
                <a href="form_controls.html">
                    Form Controls</a>
            </li>
        </ul>
    </li>
</ul>